package algorithm;

import java.math.BigInteger;

public class Test {
  public static void main(String[] args) {
    BigInteger result = new BigInteger("1");
    for (int i = 1; i <= 100 ; i++) {
      BigInteger num = new BigInteger(String.valueOf(i));
      result = result.multiply(num);
    }
    System.out.println("1到100的阶乘为：" + result);
  }
}
